/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'

// 创建查询列表
export function leaderpage(query) {
  return request({
    url: `/appr-event/pfhzhzzq/leaderpage`,
    method: 'get',
    params: query
  })
}
// 新增
export function saveLeaders(obj) {
  return request({
    url: '/appr-event/pfhzbmhzleader/saveLeaders',
    method: 'post',
    data: obj
  })
}

// 获取数据
export function submitEjld(zid) {
  return request({
    url: `/appr-event/pfhzbmhzleader/submitEjld/${zid}`,
    method: 'post',
  })
}

// 提交审核
export function submitFgld(ids) {
  return request({
    url: `/appr-event/pfhzbmhzleader/submitFgld/${ids}`,
    method: 'post',
  })
}

export function getLeaderHzzq(query) {
  return request({
    url: '/appr-event/pfhzhzzq/getLeaderHzzq',
    method: 'get',
    params: query
  })
}

// 创建查询列表
export function leaderPagez(query, type) {
  return request({
    url: `/appr-event/pfhzbmhzleader/leaderPage/${type}`,
    method: 'get',
    params: query
  })
}

export function getLdshMxListQuery(query,zid) {
  return request({
    url: `/appr-event/pfhzbmhzleader/getLdshMxListQuery/${zid}`,
    method: 'get',
    params: query
  })
}

// 提交
export function submitZyhzById(query) {
  return request({
    url: '/appr-event/pfhzbmhzleader/submitZyhzById',
    method: 'post',
    data: query
  })
}

// 提交
export function  submitZyhz(query) {
  return request({
    url: '/appr-event/pfhzbmhzleader/submitZyhz',
    method: 'post',
    data: query
  })
}


export function submitZyExamine(query) {
  return request({
    url: `/appr-event/pfhzbmhzleader/submitZyExamine`,
    method: 'post',
    data: query,
  })
}
export function getLeaderCurrentTask(proId) {
  return request({
    url: '/appr-event/pfhzbmhz/getLeaderCurrentTask/' + proId,
    method: 'get'
  })
}
//主表删除
export function deleteAssess(ids) {
  return request({
    url: `/appr-event/pfhzhzzq/${ids}`,
    method: 'delete',
  })
}

//主表删除
export function deleteZbmhz(ids) {
  return request({
    url: `/appr-event/pfhzbmhz/${ids}`,
    method: 'delete',
  })
}
